/**
 * 字符串截取(截取前几位)
 * @param val
 * @param num
 * @returns
 */
export function beforeInterceptString(val: string, num: number) {
  let count = val.length;
  let data = val;
  if (count > num) {
    data = val.substring(0, num) + '...';
  }
  return data;
}
